package com.pond.pond.domain.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 检查更新请求DTO
 */
public class CheckUpdateRequest {

    /** 当前版本号 */
    @NotBlank(message = "当前版本号不能为空")
    private String currentVersion;

    /** 设备唯一标识 */
    @NotBlank(message = "设备ID不能为空")
    private String deviceId;

    /** 平台 */
    @NotBlank(message = "平台不能为空")
    private String platform;

    /** 当前构建号 */
    @NotNull(message = "构建号不能为空")
    private Integer buildNumber;

    public String getCurrentVersion() {
        return currentVersion;
    }

    public void setCurrentVersion(String currentVersion) {
        this.currentVersion = currentVersion;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public Integer getBuildNumber() {
        return buildNumber;
    }

    public void setBuildNumber(Integer buildNumber) {
        this.buildNumber = buildNumber;
    }
}